package com.yungu.swift.report.service.impl;

import com.yungu.swift.base.ResponseData;
import com.yungu.swift.base.mapper.IMapper;
import com.yungu.swift.base.model.admin.AdminReportParam;
import com.yungu.swift.report.base.service.impl.BaseServiceImpl;
import com.yungu.swift.report.dao.ReportDriverDayDao;
import com.yungu.swift.report.entity.ReportDriverDay;
import com.yungu.swift.report.service.DriverDayService;
import com.yungu.swift.utils.DateUtils;
import com.yungu.swift.utils.MapUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.*;

@Service
public class DriverDayServiceImpl extends BaseServiceImpl<ReportDriverDay> implements DriverDayService {

    @Autowired
    private ReportDriverDayDao driverDayDao;

    @Override
    public IMapper<ReportDriverDay> getMapper() {
        return driverDayDao;
    }

    @Override
    public ResponseData<List<ReportDriverDay>> queryIndex(AdminReportParam reportParam) {
        return ResponseData.buildSuccessResponse(driverDayDao.queryIndex(reportParam));
    }
}
